package com.tac.controller;

import com.github.pagehelper.PageInfo;
import com.tac.common.result.Result;
import com.tac.pojo.DataAcquisition;
import com.tac.service.DataAcquisitionService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.models.auth.In;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;



@RestController
@RequestMapping("/dataAcquisition")
@Api(tags = "(设备)能耗数据采集")
@CrossOrigin
public class DataAcquisitionController {

    @Autowired
    private DataAcquisitionService dataAcquisitionService;
    //查看能耗数据采集列表
    @GetMapping("/getList")
    @ApiOperation("查看能耗数据采集列表")
    public Result<PageInfo<DataAcquisition>>  getList(Integer pageNum, Integer pageSize, String deviceName){
       return dataAcquisitionService.getList(pageNum,pageSize,deviceName);

    }

}
